-- GENERATED SPELL FOR [XR-949 Salvagebot] --


function spell0_34269(pUnit, Event) --@Deploy Salvage Saws,Self--
pUnit:FullCastSpellOnTarget(65099,pUnit)
pUnit:RegisterEvent('Sorts_34269', 629, 1)
end

function Sorts_34269(pUnit, Event)
local choix_sorts_34269 = math.random(0, 0)
if choix_sorts_34269 == 0 then
pUnit:RegisterEvent('spell0_34269', 1, 1)
end
end

function mob34269_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34269', math.random(1500, 3000), 1)
end

function mob34269_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34269_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34269_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34269, 1, 'mob34269_Action')
RegisterUnitEvent(34269, 2, 'mob34269_Leave')
RegisterUnitEvent(34269, 3, 'mob34269_Kill')
RegisterUnitEvent(34269, 4, 'mob34269_Die')
